package com.bsj.power.pls.config.net.netty;

import io.netty.buffer.ByteBuf;

import java.util.List;

public interface AnalysisData {

    /**
     * 分包
     * @param in
     * @param out
     * @throws Exception
     */
    void decode(ByteBuf in, List<Object> out) throws Exception;

    /**
     * 解析
     * @param bytes
     * @return
     * @throws Exception
     */
    Object analysis(byte[] bytes) throws Exception;
}
